<div class="menu">
<?php foreach($items as $item) { ?>
<?php if($item['active']) { ?>
<span class="item active"><?=$item['caption']?></span>
<?php } else { ?>
<a class="item" href="<?=$item['url']?>"><?=$item['caption']?></a>
<?php } ?>
<?php } ?>
</div>